home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 464 b | 28 lines | [TEXT/CWIE] |
- // RootPane.cp
-
- #ifndef RootPane_h
- #include "RootPane.h"
- #endif
- #ifndef WindowObject_h
- #include "WindowObject.h"
- #endif
- #ifndef RegionObject_h
- #include "RegionObject.h"
- #endif
-
- RootPane::RootPane( WindowObject& theWindow )
- {
- SetBounds( theWindow.LocalBounds() );
- MapTo( theWindow );
- }
-
- void RootPane::Clip( RegionObject& region ) const
- {
- region &= Window().VisibleRegion();
- }
-
- void RootPane::UpdateBounds()
- {
- SetBounds( Window().LocalBounds() );
- }
-